package timing.ukulele.portal.mapper;

import timing.ukulele.persistent.mapper.BaseMapper;
import timing.ukulele.portal.persistent.System;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface SystemMapper extends BaseMapper<System> {

    @Select("SELECT system_id FROM r_user_system WHERE user_id = #{userId}")
    List<Long> getSystemIdByUserId(@Param("userId") Long userId);
}
